package com.xia.im.controller.h5;

import com.xia.im.entity.SysUser;
import com.xia.im.service.SysUserService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RequestMapping("/h5/user")
@RestController
public class UserH5Controller {

    @Resource
    private SysUserService userService;

    @PostMapping("add")
    public void addUser(@RequestBody SysUser sysUser){
        userService.addUser(sysUser);
    }

}
